using System;

namespace WeakEvent
{
    public class FastSmartEventSource : IEventSource
    {
        private FastSmartWeakEvent<EventHandler> _event = new FastSmartWeakEvent<EventHandler>();

        public event EventHandler Event
        {
            add
            {
                _event.Add(value);
            }
            remove
            {
                _event.Remove(value);
            }
        }

        public void RaiseEvent()
        {
            _event.Raise(this, EventArgs.Empty);
        }
    }
}
